diff --git a/swh/web/ui/templates/revision-log.html b/swh/web/ui/templates/revision-log.html
index ba124f08..26e4462a 100644
--- a/swh/web/ui/templates/revision-log.html
+++ b/swh/web/ui/templates/revision-log.html
@@ -1,128 +1,135 @@
{% extends "layout.html" %}
{% block title %}Revision Log{% endblock %}
{% block content %}
{% if message is not none %}
{{ message }}
{% endif %}
Queried revision:
{% if sha1_git is not none %}
{% else %}
Branch name {{ branch_name }}
{% if timestamp is not none %}
Time stamp {{ timestamp }}
{% endif %}
{% endif %}
{% if revisions is not none %}
{% for revision in revisions %}
{% if revision['url'] is not none %}
{% endif %}
{% if revision['history_url'] is not none %}
{% endif %}
+ {% if revision['history_context_url'] is not none %}
+
+
Contextual Revision Log
+
+
+ {% endif %}
+
{% if revision['directory_url'] is not none %}
{% endif %}
{% if revision['author'] is not none %}
{% endif %}
{% if revision['committer'] is not none %}
Committer Date
{{ revision['committer_date'] }}
{% endif %}
{% if revision['message'] is not none %}
Message
{{ revision['message'] }}
{% elif revision['message_encoding_failed'] %}
Message
No message found.
{% endif %}
{% for key in revision.keys() %}
{% if key in ['type', 'synthetic'] and key not in ['decoding_failures'] and revision[key] is not none %}
{% endif %}
{% endfor %}
{% for key in ['parent_urls', 'children_urls'] %}
{% if revision[key] is not none %}
{{ key }}
{% for link in revision[key] %}
{% endfor %}
{% endif %}
{% endfor %}
{% if 'decoding_failures' in revision %}
(some decoding errors occurred)
{% endif %}
{% endfor %}
{% endif %}
{% endblock %}
diff --git a/swh/web/ui/templates/revision.html b/swh/web/ui/templates/revision.html
index 307420bb..8629aa1d 100644
--- a/swh/web/ui/templates/revision.html
+++ b/swh/web/ui/templates/revision.html
@@ -1,109 +1,116 @@
{% extends "layout.html" %}
{% block title %}Revision{% endblock %}
{% block content %}
{% if message is not none %}
{{ message }}
{% endif %}
{% if revision is not none %}
{% if revision['url'] is not none %}
{% endif %}
{% if revision['history_url'] is not none %}
{% endif %}
+ {% if revision['history_context_url'] is not none %}
+
+
Contextual Revision Log
+
+
+ {% endif %}
+
{% if revision['directory_url'] is not none %}
{% endif %}
{% if revision['author'] is not none %}
{% endif %}
{% if revision['committer'] is not none %}
Committer Date
{{ revision['committer_date'] }}
{% endif %}
{% if revision['message'] is not none %}
Message
{{ revision['message'] }}
{% elif revision['message_encoding_failed'] %}
Message
No message found.
{% endif %}
{% for key in revision.keys() %}
{% if key in ['type', 'synthetic'] and revision[key] is not none %}
{% endif %}
{% endfor %}
{% for key in ['parent_urls', 'children_urls'] %}
{% if revision[key] is not none %}
{{ key }}
{% for link in revision[key] %}
{% endfor %}
{% endif %}
{% endfor %}
{% if 'decoding_failures' in revision %}
{% endif %}
{% endif %}
{% endblock %}